﻿/**
 * ...
 * @author Lucas Duroj
 */

package getengine.core;

class Node 
{
	/**
	 * When any transformation is done on the localspace matrix, we set this to True.
	 * This will signal all worldspace operations to first update the worldspace matrix.
	 */
	private var isDirty: Bool;
	
	public var matrix(getMatrix, null):Int; // TODO: Write matrix class
	public var worldmatrix(getWorldMatrix, null):Int; // TODO: Write matrix class
	
	public var parent: Node;
	
	public function new() 
	{
		
	}
	
	public function getMatrix(): Int // TODO: Write matrix class
	{
		return matrix;
	}
	
	public function getWorldMatrix(): Int // TODO: Write matrix class
	{
		if (isDirty)
		{
			
		}
		return worldmatrix;
	}
	
	public function updateMatrix()
	{
		
	}
}